<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/V_campphase_people.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/V_campphase_people.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '营中营期营员',
                    name: 'V_campphase_people',
                    url: "/V_campphase_people/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {"gender":"","height":"","name":"","IdCard":"","IdCardType":"","shoeSize":"","parentsIdCard":"","parentsName":"","parentsPhone":"","plateNum":"","skiLevel":"","weight":"","remarks":"","modifier":"","modifyDate":"","modifyID":"","createDate":"","createID":"","creator":""},
                editFormOptions: [[{"title":"姓名","field":"name","type":"text"},
                               {"dataKey":"gender","data":[],"title":"性别","field":"gender","type":"select"},
                               {"title":"身高","field":"height","type":"text"}],
                              [{"dataKey":"certificate_type","data":[],"title":"证件类型","field":"IdCardType","type":"select"},
                                {"title":"证件号","field":"IdCard","type":"text"},
                               {"title":"鞋码","field":"shoeSize"}],
                              [{"title":"单双板","field":"plateNum","type":"number",dataKey: "plateNum",data:[]},
                               {"title":"滑雪水平","field":"skiLevel"},
                               {"title":"体重","field":"weight"}],
                               [{"title":"监护人姓名","field":"parentsName"},
                               {"title":"监护人手机","field":"parentsPhone","type":"phone"},
                               {"title":"监护人证件号","field":"parentsIdCard"}],
                              [{"title":"注意事项/备注","field":"remarks","type":"textarea", colSize: 12}]],
                searchFormFields: {"gender":"","IdCard":"","IdCardType":"","name":"","parentsName":"","parentsPhone":""},
                searchFormOptions: [[{"title":"姓名","field":"name","type":"text"},{"dataKey":"gender","data":[],"title":"性别","field":"gender","type":"select"},{"title":"证件号","field":"IdCard","type":"text"}],[{"dataKey":"certificate_type","data":[],"title":"证件类型","field":"IdCardType","type":"select"},{"title":"监护人姓名","field":"parentsName","type":"text"},{"title":"监护人手机","field":"parentsPhone","type":"text"}]],
                columns: [

                    {field:'campsite_name',title:'营地名称',type:'int',width:90,require:true,align:'left'},
                    {field:'phase_name',title:'营期名称',type:'int',width:90,require:true,align:'left'},
                    {field:'name',title:'姓名',type:'string',width:90,align:'left'},
                        {field:'gender',title:'性别',type:'int',width:90,align:'left',bind:{key:'gender',data:[]}},
                       {field:'height',title:'身高',type:'string',width:90,align:'left'},
                     {field:'birthDate',title:'出生日期',type:'datetime',width:90,align:'left',sortable:true},
                    //    {field:'campsite_id_fk',title:'campsite_id_fk',type:'int',width:90,align:'left'},
                    //    {field:'createID',title:'创建人id',type:'int',width:90,hidden:true,align:'left'},
                    //    {field:'id',title:'id',type:'int',width:90,require:true,align:'left'},
                    {field:'IdCardType',title:'证件类型',type:'int',width:90,align:'left',bind:{key:'certificate_type',data:[]}},
                       {field:'IdCard',title:'证件号',type:'string',width:220,align:'left'},
                       {field:'weight',title:'体重',type:'string',width:90,align:'left'},
                    //    {field:'modifyID',title:'修改人id',type:'int',width:90,hidden:true,align:'left'},
                       {field:'parentsName',title:'监护人姓名',type:'string',width:90,align:'left'},
                       {field:'parentsPhone',title:'监护人手机',type:'string',width:90,align:'left'},
                       {field:'parentsIdCard',title:'监护人证件号',type:'string',width:220,align:'left'},
                       {field:'plateNum',title:'单双板',type:'int',width:90,align:'left',bind:{key:'plateNum',data:[]}},
                       {field:'shoeSize',title:'鞋码',type:'string',width:90,align:'left'},
                    //    {field:'skiLevel',title:'滑雪水平',type:'string',width:220,align:'left'},
                       {field:'remarks',title:'注意事项/备注',type:'string',width:220,align:'left'},
                    //    {field:'uid',title:'guid',type:'string',width:90,align:'left'},
                       {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
                       {field:'createDate',title:'创建时间',type:'datetime',width:190,align:'left',sortable:true},
                       {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
                       {field:'modifyDate',title:'修改时间',type:'datetime',width:190,align:'left',sortable:true},],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
